﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TimeAxis.Models
{
    /// <summary>
    /// 问题分类关系
    /// </summary>
    public class DocCategory
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get; set; }


        /// <summary>
        /// 问题编号
        /// </summary>
        public int DocId { get; set; }

        /// <summary>
        /// 相关问题
        /// </summary>
        public virtual Doc Doc { get; set; }


        /// <summary>
        /// 分类编号
        /// </summary>
        public int CategoryId { get; set; }

        /// <summary>
        /// 相关分类
        /// </summary>
        public virtual Category Category { get; set; }


        public DocCategory()
        {
            this.Id = int.MinValue;
            this.DocId = int.MinValue;
            this.CategoryId = int.MinValue;
        }
    }
}
